package org.firebug.spring.boot.starter.test.controller;

import org.firebug.spring.boot.starter.SpringBootStarterProperties;
import org.firebug.spring.boot.starter.service.*;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/starter")
public class StarterController {
    @Resource
    private SpringBootStarterProperties springBootStarterProperties;
//    @Resource
    private ConditionalOnClassService conditionalOnClassService;
//    @Resource
    private ConditionalOnMissingClassService conditionalOnMissingClassService;
//    @Resource
    private ConditionalOnBeanService conditionalOnBeanService;
//    @Resource
    private ConditionalOnMissingBeanService conditionalOnMissingBeanService;
//    @Resource
    private ConditionalOnPropertyService conditionalOnPropertyService;

    @RequestMapping(value = "/properties", method = {RequestMethod.GET})
    public SpringBootStarterProperties properties() {
        return springBootStarterProperties;
    }
}
